package com.newway.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.newway.common.result.BaseEntity;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("topic_forum")
public class TopicForum extends BaseEntity {

    @TableId
    private Integer id;

    private String title;

    //1陆行攻略 2 线路推荐3摄影分享4装备讨论5结伴而行
    private String category;

    private String content;

    private String createUser;

    private String userId;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private Integer viewCount;

    private Integer replyCount;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastReply;

    private String isFirst;//0否 1 是
}
